package org.itboys.mobile.entity.mongo.cart;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * 作者：zzq
 * 时间：2017/12/5
 * 描述：迈迪龙_购物车
 */
@Entity(value="CooCart", noClassnameStored=true)
public class CooCart extends BaseMongoEntity{
    //基本属性
    private Long memberId;//收货人id
    private Long productId;//商品Id
    private Integer num;//数量
    private Integer cartType;//购物车数据类型。1，购物车加入，2，立即购买加入

    public CooCart() {
    }

    public CooCart(Long memberId, Long productId, Integer num, Integer cartType) {
        this.memberId = memberId;
        this.productId = productId;
        this.num = num;
        this.cartType = cartType;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getCartType() {
        return cartType;
    }

    public void setCartType(Integer cartType) {
        this.cartType = cartType;
    }
}
